package com.usian.service;

import com.usian.pojo.Emp;
import com.usian.query.EmpDto;
import com.usian.utils.PageResult;

import java.util.List;

public interface EmpService {

    public List<Emp> findAll();

    public Emp findById(int id);

    public Emp findByIdAndName(int id, String name);

    public void saveEmp(Emp emp);

    public void updateEmp(Emp emp);

    //返回分页查询结果集合
    public PageResult<Emp> findAll(EmpDto empDto);

    public void deleteById(Integer id);
}
